package com.elitel.common.pagelist;

import java.math.BigDecimal;

public class ExportColumn {

    private ColumnAlignType align = ColumnAlignType.none; // 列数据对齐方式
    private BigDecimal boxWidth;
    private String cellClass; // 列样式
    private Boolean checkbox; // 复选框
    private BigDecimal colspan; // 合并列
    private BigDecimal deltaWidth;
    private ColumnEditor editor; // 单元格编辑器
    private String field; // 列字段
    private int fieldIndex; // 字段顺序
    private ColumnAlignType halign = ColumnAlignType.none; // 列标题对齐方式,未设置时使用align
    private Boolean hidden; // 隐藏列
    private Boolean isfixed; // 在'fitColumns'设置为true时阻止自适应宽度
    private SortOrderType order = SortOrderType.none; // 排序数序
    private Boolean resizable; // 允许改变列宽度
    private BigDecimal rowspan; // 合并行
    private Boolean sortable; // 允许排序
    private String title; // 列标题
    private BigDecimal width; // 列宽度，boxWidth + deltaWidth

    public ColumnAlignType getAlign() {
        return align;
    }

    public BigDecimal getBoxWidth() {
        return boxWidth;
    }

    public String getCellClass() {
        return cellClass;
    }

    public Boolean getCheckbox() {
        return checkbox;
    }

    public BigDecimal getColspan() {
        return colspan;
    }

    public BigDecimal getDeltaWidth() {
        return deltaWidth;
    }

    public ColumnEditor getEditor() {
        return editor;
    }

    public String getField() {
        return field;
    }

    public int getFieldIndex() {
        return fieldIndex;
    }

    public ColumnAlignType getHalign() {
        return halign;
    }

    public Boolean getHidden() {
        return hidden;
    }

    public Boolean getIsfixed() {
        return isfixed;
    }

    public SortOrderType getOrder() {
        return order;
    }

    public Boolean getResizable() {
        return resizable;
    }

    public BigDecimal getRowspan() {
        return rowspan;
    }

    public Boolean getSortable() {
        return sortable;
    }

    public String getTitle() {
        return title;
    }

    public BigDecimal getWidth() {
        return width;
    }

    public void setAlign(ColumnAlignType align) {
        this.align = align;
    }

    public void setBoxWidth(BigDecimal boxWidth) {
        this.boxWidth = boxWidth;
    }

    public void setCellClass(String cellClass) {
        this.cellClass = cellClass;
    }

    public void setCheckbox(Boolean checkbox) {
        this.checkbox = checkbox;
    }

    public void setColspan(BigDecimal colspan) {
        this.colspan = colspan;
    }

    public void setDeltaWidth(BigDecimal deltaWidth) {
        this.deltaWidth = deltaWidth;
    }

    public void setEditor(ColumnEditor editor) {
        this.editor = editor;
    }

    public void setField(String field) {
        this.field = field;
    }

    public void setFieldIndex(int fieldIndex) {
        this.fieldIndex = fieldIndex;
    }

    public void setHalign(ColumnAlignType halign) {
        this.halign = halign;
    }

    public void setHidden(Boolean hidden) {
        this.hidden = hidden;
    }

    public void setIsfixed(Boolean isfixed) {
        this.isfixed = isfixed;
    }

    public void setOrder(SortOrderType order) {
        this.order = order;
    }

    public void setResizable(Boolean resizable) {
        this.resizable = resizable;
    }

    public void setRowspan(BigDecimal rowspan) {
        this.rowspan = rowspan;
    }

    public void setSortable(Boolean sortable) {
        this.sortable = sortable;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setWidth(BigDecimal width) {
        this.width = width;
    }
}
